//
//  APIMycityGetTotalRankData.h
//  Bracelet
//
//  Created by jing zhao on 2/27/15.
//  Copyright (c) 2015 jing zhao. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "APIOneRank.h"

@interface APIOneCityTotalRank : NSObject

@property (copy, nonatomic) NSString*   strCityId;
@property (copy, nonatomic) NSString*   strCityName;
@property (copy, nonatomic) NSString*   strCityRunRanking;
@property (copy, nonatomic) NSString*   strCityOkproportion;
@property (copy, nonatomic) NSString*   strCityRunTotal_metre;
@property (copy, nonatomic) NSString*   strCityMax_metre;
@property (copy, nonatomic) NSString*   strCityTotal_money;
@property (copy, nonatomic) NSString*   strCityRankNum;

+(instancetype)apiFromDictionaryPaper:(NSDictionary*)dic;
@end

@interface APIMycityGetTotalRankData : NSObject

@property(strong, nonatomic)APIOneCityTotalRank* myRank;
@property (strong, nonatomic)NSMutableArray *arrayAllRank;
@property (strong, nonatomic)APIPaper *paper;

+(void)getCityRankOfCityWithPagePaper:(NSString*)page
                      getTheTotalRank:(void (^)(APIMycityGetTotalRankData *outRank))successBlock
                              failure:(void (^)( NSError *error)) failureBlock;
+(void)getCityRankOfWeekWithPagePaper:(NSString*)page
                      getTheTotalRank:(void (^)(APIMycityGetTotalRankData *outRank))successBlock
                              failure:(void (^)( NSError *error)) failureBlock;
@end
